package org.stream.answerduel.vo.Message;

import com.alibaba.fastjson.JSON;
import lombok.Data;
import org.stream.answerduel.vo.UserVo;
import org.stream.answerduel.vo.WaitingUser;

@Data
public class JoinRoomMessage extends Message{
    private WaitingUser waitingUser;

    private String roomId;

    public JoinRoomMessage(){
        super(Type.JoinRoom);
    }
    public JoinRoomMessage(WaitingUser waitingUser, String roomId){
        super(Type.JoinRoom);
        this.roomId = roomId;
        this.waitingUser = waitingUser;
    }
    @Override
    public String toString(){
        return JSON.toJSONString(this);
    }
}
